flask render_template csp

35

@app.after_request
def add_security_headers(resp):
    resp.headers['Content-Security-Policy']='default-src \'self\''
    return resp

Comments

Submit
0 Comments